package com.agileboot.domain.news.db;

import com.agileboot.domain.news.db.NewsInfo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * 新闻资讯表(NewsInfo)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-29 18:00:21
 */
public interface NewsInfoMapper extends BaseMapper<NewsInfo> {
    @Select("select * " +
            "from tb_news_info " +
            "${ew.customSqlSegment}")
    Page<NewsInfo> queryNewsInfo(Page<NewsInfo> toPage,@Param(Constants.WRAPPER) QueryWrapper<NewsInfo> addQueryCondition);
}

